package com.my.test.service.invest_order.dao.impl;

import com.my.test.service.invest_order.dao.InvestOrderDao;
import com.my.test.service.invest_order.model.InvestOrder;
import org.mybatis.spring.support.SqlSessionDaoSupport;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository("investOrderDao")
public class InvestOrderDaoImpl extends SqlSessionDaoSupport implements InvestOrderDao {

    @Override
    public void insertByBatch(List<InvestOrder> investOrders) {
        this.getSqlSession().insert("addOrderBatch",investOrders);
    }
}